Optimal. Leaf size=119 \[ -\frac {(A-B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}-\frac {(3 A-B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}+\frac {(3 A-B) \sin (c+d x)}{a d \sqrt {\cos (c+d x)}}-\frac {(A-B) \sin (c+d x)}{d \sqrt {\cos (c+d x)} (a \cos (c+d x)+a)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.17, antiderivative size = 119, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {2978, 2748, 2636, 2639, 2641} \[ -\frac {(A-B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}-\frac {(3 A-B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}+\frac {(3 A-B) \sin (c+d x)}{a d \sqrt {\cos (c+d x)}}-\frac {(A-B) \sin (c+d x)}{d \sqrt {\cos (c+d x)} (a \cos (c+d x)+a)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2636
Rule 2639
Rule 2641
Rule 2748
Rule 2978
Rubi steps
\begin {align*} \int \frac {A+B \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) (a+a \cos (c+d x))} \, dx &=-\frac {(A-B) \sin (c+d x)}{d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))}+\frac {\int \frac {\frac {1}{2} a (3 A-B)-\frac {1}{2} a (A-B) \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx}{a^2}\\ &=-\frac {(A-B) \sin (c+d x)}{d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))}-\frac {(A-B) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{2 a}+\frac {(3 A-B) \int \frac {1}{\cos ^{\frac {3}{2}}(c+d x)} \, dx}{2 a}\\ &=-\frac {(A-B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}+\frac {(3 A-B) \sin (c+d x)}{a d \sqrt {\cos (c+d x)}}-\frac {(A-B) \sin (c+d x)}{d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))}-\frac {(3 A-B) \int \sqrt {\cos (c+d x)} \, dx}{2 a}\\ &=-\frac {(3 A-B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}-\frac {(A-B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}+\frac {(3 A-B) \sin (c+d x)}{a d \sqrt {\cos (c+d x)}}-\frac {(A-B) \sin (c+d x)}{d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.71, size = 1130, normalized size = 9.50 \[ \text {result too large to display} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.65, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (B \cos \left (d x + c\right ) + A\right )} \sqrt {\cos \left (d x + c\right )}}{a \cos \left (d x + c\right )^{3} + a \cos \left (d x + c\right )^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {B \cos \left (d x + c\right ) + A}{{\left (a \cos \left (d x + c\right ) + a\right )} \cos \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 2.36, size = 319, normalized size = 2.68 \[ -\frac {\sqrt {-\left (-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \left (A \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-3 A \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-B \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+B \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )-2 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \left (3 A -B \right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \left (5 A -B \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}{a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} \left (2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {B \cos \left (d x + c\right ) + A}{{\left (a \cos \left (d x + c\right ) + a\right )} \cos \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {A+B\,\cos \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{3/2}\,\left (a+a\,\cos \left (c+d\,x\right )\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________